package org.raymond.iworks.study.mq.kafka.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@Slf4j
@Component
public class Sample5Consumer {
    @KafkaListener(id ="sampleListener", topics = "topic1")
    void listenForTopic(String payload) {
        System.out.println("Received: " + payload);
    }
}
